finding the center of the circle